'''
定义函数：读取json文件
@File:read_json_util.py
@Datetime:2022/11/2 22:12
@Author:wangt
@Desc:
'''
import json

# 定义函数：读取json文件
def read_json_data(path_filename):
    # with open("../data/ihrm_login.json", "r", encoding="utf-8") as f:
    # with open("../data/ihrm_emp_add.json", "r", encoding="utf-8") as f:
    with open(path_filename, "r", encoding="utf-8") as f:
        json_data = json.load(f)
        list_data = []
        for item in json_data:
            tmp = tuple(item.values())
            list_data.append(tmp)
        return list_data        # 循环结束，返回list_data数据，注意和for在同一位置

if __name__ == '__main__':
    r = read_json_data()
    print(r)